from cyaron import *

#predata
name = "path"

mxn = 0
mxm = 0

for i in range(1, 11):
    test_data = IO(file_prefix=name, data_id=i)
    # make data
    if i < 5:
        mxn = 10
        mxm = 10
    else:
        mxn = 10000
        mxm = 200000
    n = randint(1, mxn)
    m = randint(0, mxm)
    graph = Graph.graph(n, m, weight_limit=mxn, repeated_edges=False, self_loop=False)
    # writeln data
    test_data.input_writeln(n, m)
    test_data.input_writeln(graph)
    # run data by shell
    test_data.output_gen("./" + name)